using System;
using System.Collections.Generic;
using System.Text;
using GMID = System.Int64;

namespace Cobalt75.GreyMatter
{
    public class GMLinkTable
    {
        public GMLinkTable(string name, GMTableAttribute master, GMTableAttribute relation, GMTableAttribute index, GMColumnBaseAttribute parameter, bool duplicates, bool unique, bool useIndexField)
        {
            pMaster = master;
            pRelation = relation;
            pIndex = index;
            pName = name;
            pDuplicates = duplicates;
            pUnique = unique;
            pParameter = parameter;
            pUseIndexField = useIndexField;
        }

        GMTableAttribute pMaster;
        GMTableAttribute pRelation; 
        GMTableAttribute pIndex;
        GMColumnBaseAttribute pParameter;
        string pName;
        bool pUseIndexField;
        bool pDuplicates;
        bool pUnique;

        public GMTableAttribute Master
        {
            get
            {
                return pMaster;
            }
        }
        public GMTableAttribute Relation
        {
            get
            {
                return pRelation;
            }
        }
        public GMTableAttribute Index
        {
            get
            {
                return pIndex;
            }
        }
        public GMColumnBaseAttribute Parameter
        {
            get
            {
                return pParameter;
            }
        }
        public string Name
        {
            get
            {
                return pName;
            }
        }
        public bool UseIndexField
        {
            get
            {
                return pUseIndexField;
            }
        }
        public bool Duplicates
        {
            get
            {
                return pDuplicates;
            }
        }
        public bool Unique
        {
            get
            {
                return pUnique;
            }
        }
    }
}
